<?php

namespace App\Kuafu\WaiMai\Controller\Ext;

use App\Kuafu\Base\Controller\BaseController;
use App\Kuafu\Order\Enum\CodeEnum;
use App\Kuafu\WaiMai\Service\BaseWaiMaiOrderService;
use App\Kuafu\WaiMai\Service\MtWaiMaiOrderService;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;

class ElmWaiMaiCallbackController extends BaseController
{
    public function push(Request $request)
    {
        Log::channel('waiMai')->info('ElmWaiMai Callback:', $request->all());

        BaseWaiMaiOrderService::getIns(CodeEnum::SOURCE_TYPE_ELM)->run();

        return '{"message":"ok"}';
    }
}
